package com.guigu.service.impl.stock;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.mapper.stock.SysMenusMapper;
import com.guigu.pojo.stock.SysMenus;
import com.guigu.service.stock.SysMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-06
 */
@Service
public class SysMenusServiceImpl extends ServiceImpl<SysMenusMapper, SysMenus> implements SysMenusService {

    @Autowired
    private SysMenusMapper sysMenusMapper;

    @Override
    public ArrayList<SysMenus> selectNavMenusByRoleId(Integer roleId) {
        ArrayList<SysMenus> sysMenus = sysMenusMapper.selectNavMenusByRoleId(roleId);
        return sysMenus;
    }

    @Override
    public ArrayList<SysMenus> selectSysMenusByRoleId(Integer roleId) {
        ArrayList<SysMenus> sysMenus = sysMenusMapper.selectSysMenusByRoleId(roleId);
        return sysMenus;
    }
}
